<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">

<head th:replace="top::html">
    <title>添加对接详情</title>
</head>
<body class="fixed hold-transition skin-blue">
    <div class="wrapper">
        <div th:replace="tophtml::html"></div>
        <div th:replace="left::html"></div>
        <div class="content-wrapper">
            <section class="content-header">
                <h1>
                    <span>更新对接详情</span>
                    <!-- <small>
                    	项目名称：<a th:href="@{'/project/showDetail?projectId='+${project.pid}}" th:text="${project.projectName}"></a>
                    </small> -->
                </h1>
                <ol class="breadcrumb" th:with="customerId=${customer} ? ${customer.pid}">
                    <li th:replace="${prevPage}::section.content-header/ol/li"></li>
                    <li><a href="">更新对接详情</a></li>
                </ol>
            </section>

            <section class="content container-fluid">
                <form th:action="@{/details/addButts}" method="post" th:object="${buttDeteils}" enctype="multipart/form-data">
                    <input type="hidden" name="detailPid" th:value="${detailPid}" />
                    <input type="hidden" name="showButtDetailUrl" th:value="${showButtDetailUrl}" />
                    <div th:if="${project}">
                        <div class="form-group">
                            <label>项目ID</label>
                            <input type="hidden" name="projectNumber" th:value="${project.pid}" />
                            <input type="text" class="form-control" placeholder="Enter ..." name="projectId" th:value="'R'+${project.projectNumber}">
                        </div>
                        <label>项目名称</label>
                        <input type="text" class="form-control" placeholder="Enter ..." name="projectName" th:value="${project.projectName}">
                    </div>
                    <div th:if="${demand}">
                        <div class="form-group">
                            <label>需求ID</label>
                            <input type="hidden" name="demandNumber" th:value="${demand.pid}" />
                            <input type="text" class="form-control" placeholder="Enter ..." name="demandId" th:value="'D'+${demand.demandNumber}">
                        </div>
                        <div class="form-group">
                            <label>需求内容</label>
                            <input type="text" class="form-control" placeholder="Enter ..." name="demandName" th:value="${demand.demandName}">
                        </div>
                    </div>
                    <div th:if="${person}">
                        <div class="form-group">
                            <label>专家ID</label>
                            <input type="hidden" name="expertNumber" th:value="${person.pid}" />
                            <input type="text" class="form-control" placeholder="Enter ..." name="expertId" th:value="${person.expertNumber}">
                        </div>
                        <div class="form-group">
                            <label>专家姓名</label>
                            <input type="text" class="form-control" placeholder="Enter ..." name="name" th:value="${person.name}">
                        </div>
                    </div>
                    <div th:if="${customer}">
                        <div class="form-group">
                            <label>客户ID</label>
                            <input type="hidden" name="customerNumber" th:value="${customer.pid}" />
                            <input type="text" class="form-control" placeholder="Enter ..." name="customerId" th:value="${customer.customerNumber}">
                        </div>
                        <div class="form-group">
                            <label>客户名称</label>
                            <input type="text" class="form-control" placeholder="Enter ..." name="customerName"
                                th:value="${customer.customerName}">
                        </div>
                    </div>
                    <div th:if="${conference}">
                        <div class="form-group">
                            <label>会议ID</label>
                            <input type="hidden" name="conferenceNumber" th:value="${conference.pid}" />
                            <input type="text" class="form-control" placeholder="Enter ..." name="conferenceId" th:value="${conference.conferenceNumber}">
                        </div>
                        <div class="form-group">
                            <label>会议名称</label>
                            <input type="text" class="form-control" placeholder="Enter ..." name="conferenceName"
                                th:value="${conference.conferenceName}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label>对接状态状态</label>
                        <select class="form-control" name="buttStatus">
                            <option th:each="psd : ${buttStatus}" th:value="${psd.names}" th:text="${psd.worth}" th:selected="${psd.names eq buttDe.buttStatus+''}" >----</option>
                        </select>
                    </div>
                       <div class="form-group">
                        <label for="exampleInputFile">对接附件</label> <input type="file" name="buttDetailsFiles" id="buttDetailsFiles">
                    </div>
                    <div class="form-group">
                        <label>对接详情</label>
                        <textarea class="form-control" name="buttDetails" th:placeholder="${details}"></textarea>
                    </div>
                    <div class="form-group">
                        <label>对接时间:</label>
                        <div class="input-group date">
                            <div class="input-group-addon">
                                <i class="fa fa-calendar"></i>
                            </div>
                            <input type="text" class="form-control pull-right" id="datepicker" name="buttDataTime" th:value="${buttDe.buttDataTime}"  >
                        </div>
                    </div>
                    <div class="box-footer">
                        <button type="submit" class="btn btn-primary">添加</button>
                        <button type="button" class="btn btn-primary" onclick="window.history.go(-1)" style="margin-left: 30px;">返回</button>
                    </div>
                </form>
            </section>
        </div>
        <div th:replace="footer::html"></div>
        <div class="control-sidebar-bg"></div>
    </div>
    <div th:replace="bottom::html"></div>
</body>

</html>